<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/views/global/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath %>">
<%@include file="/views/global/ShopInclude.jsp" %>
<link href="static/css/page/information.css" rel="stylesheet" type="text/css">
<title>INFORMATION</title>
</head>
<body class="submitBg">
<!-- 顶部导航条  -->
<%@include file="/views/global/header.jsp" %>
<!-- 顶部导航条结束  -->

<c:set var="pageName" value="information"></c:set>
<%@include file="/views/global/BuyerHeader.jsp" %>

<div class="form-container center font fontColorGray">  <!-- 表单填写部分 -->
    <form id="submitForm" class="submit-form" action="" method="post">
    	<div class="form-content">
    		<div class="form-heading row hrTableBorder">
    			<div class="col-xs-11 form-title">
    				账户信息 INFO
    			</div>
    			<div class="col-xs-1 form-href" style="text-align: right;">
    				<a href="buyer/information/edit">编辑 EDIT</a>
    			</div>
    		</div>
    		<div class="row information-content">
    			<div class="col-xs-2">
    				<div class="user-drawing">
    					<c:choose>
    						<c:when test="${empty user.userFileId }">
    							<img src="static/images/global/blank.png"/>
    						</c:when>
    						<c:otherwise>
    							<img src="${fileServerBasePath }download/${user.userFileId }"/>
    						</c:otherwise>
    					</c:choose>
    					<div class="image-edit">
    						<a href="javascript:void(0)" onclick="changePicture(this)">EDIT</a>
    					</div>
    				</div>
    			</div>
    			<div class="col-xs-9">
    				<div class="information-row">
    					<span class="form-label">
    						昵称 NICKNAME:
    					</span>
    					<span class="form-text">
    						${user.userNick }
    					</span>
    				</div>
    				
    				<div class="information-row">
    					<span class="form-label">
    						性别 SEX:
    					</span>
    					<span class="form-text">
    						<c:choose>
    							<c:when test="${user.gender eq 'm' }">男</c:when>
    						    <c:when test="${user.gender eq 'f' }">女</c:when>
    						    <c:otherwise></c:otherwise>
    						</c:choose>
    					</span>
    				</div>
    				<div class="information-row">
    					<span class="form-label">
    						出生日期 DATE OF BIRTH:
    					</span>
    					<span class="form-text">
    						${user.birthday }
    					</span>
    				</div>
    				<div class="information-row">
    					<span class="form-label">
    						用户名 USER NAME:
    					</span>
    					<span class="form-text">
    						${user.userName }
    					</span>
    					<span class="form-comment">
    						(CANNOT BE CHANGED)
    					</span>
    				</div>
    				
    				<div class="information-row">
    					<span class="form-label">
    						电子邮箱 EMAIL:
    					</span>
    					<span class="form-text">
    						${user.email }
    					</span>
    				</div>
    				<div class="information-row">
    					<span class="form-label">
    						注册日期 DATE OF REGISTRATION:
    					</span>
    					<span class="form-text">
    						${user.gmtCreate }
    					</span>
    				</div>
    			</div>
    		</div>
    	</div>
	</form>
  </div>

<!-- 页尾 -->
<%@include file="/views/global/AdminScripts.jsp" %>
<%@include file="/views/global/footer.jsp" %>
<!-- 页尾结束 -->
  
</body>

<script type="text/javascript">
function changePicture(target){
	
}
</script>
</html>
